#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <dirent.h>
main()
{
	DIR *dir;
	dir=opendir("/home/abby/bin/test/");
	struct dirent *read;
	while((read=readdir(dir))!=NULL)
		{
		printf("the directory name is : %s\n",read->d_name);
	}
	closedir(dir);
}



